package org.aptech.hdax.service.impl;

import java.util.List;

import org.aptech.hdax.dao.AttendenceDao;
import org.aptech.hdax.pojo.Attendence;
import org.aptech.hdax.service.AttendenceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(propagation = Propagation.REQUIRED)
public class AttendenceServiceImpl implements AttendenceService {
	@Autowired
	private AttendenceDao attendenceDao;
	@Override
	public List<Attendence> getList(Attendence attendence) {
		return attendenceDao.getList(attendence);
	}

	@Override
	public void add(Attendence attendence) {
		attendenceDao.add(attendence);
	}

	@Override
	public void batchDelete(Integer[] ids) {
		attendenceDao.batchDelete(ids);
	}

}
